#include "BaseObject.h"

#include "Inventory.h"
#include "Item.h"

BaseObject::BaseObject(void)
{
   m_pInventory = new Inventory();
}

BaseObject::~BaseObject(void)
{
   if (m_pInventory != NULL)
      delete m_pInventory;
   m_pInventory = NULL;
}

int BaseObject::AddItemToInventory(Item * pItem)
{
   return m_pInventory->AddItem(pItem);
}
